<template>
    <el-main>
        <el-main class="ep-body">
            <!--<epl-top-bar showCompany companyType="COMPANY_AAB000_EXACT">-->
            <!--<ep-button size="small" name="打印"></ep-button>-->
            <!--<ep-button size="small" name="刷新"></ep-button>-->
            <!--</epl-top-bar>-->
            <!--<epl-CpInsureRegPanel mt="10" p="H" detail-path="/business/d100insiup/d71query/CpQueryAll"></epl-CpInsureRegPanel>-->

            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP"
                         :datas="{ formData: form,panel: panel }" >
                <ep-button size="small" name="打印"></ep-button>
                <el-button size="small" @click="clear" >刷新</el-button>
            </epl-top-bar>
            <epl-userMessage idCount="1" dataType="company"  isCodeType isEdit="1"   :panel="panel">
            </epl-userMessage>

             <el-form :model="form" :rules="rules"  ref="form">
            <el-collapse v-model="activeNames" >
                <el-collapse-item  title="请输入单位基本信息" name="1">
                    <el-card class="ep-card">
                            <el-row >
                                <ep-input colspan="8" label="统一社会信用代码" name="bab010" :property="form.bab010"
                                          placeholder="请输入统一社会信用代码" p="R" isChange
                                          rules="this.$localRules.checkBAB010"
                                          :datas="{formData: form,tableData1:tableData1,tableData1Id:tableData1Id}"></ep-input>

                                <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069"
                                          placeholder="请输入单位名称" p="R"  isChange
                                          :datas="{formData: form,tableData1:tableData1,tableData1Id:tableData1Id}" ></ep-input>
                            </el-row>
                            <el-row >
                                <ep-select colspan="8" label="行政区划" name="aab301" :property="form.aab301"
                                           placeholder="请选择行政区划" p="R" codetype="AAB301"
                                           :datas="{formData:form}"></ep-select>
                                <ep-input colspan="8" label="统筹区"  name="aaa027" :property="form.aaa027"
                                          placeholder="" p="D" ></ep-input>
                                <ep-select colspan="8" label="隶属关系" name="aab021" :property="form.aab021"
                                           placeholder="请选择隶属关系" p="R"  codetype="AAB021"
                                           :datas="{formData:form}" ></ep-select>
                            </el-row>
                            <el-row>
                                <ep-select colspan="8" label="主管部门" name="aab023" :property="form.aab023"
                                           placeholder="请选择主管部门" p="E"  codetype="AAB023"
                                           :datas="{formData:form}" ></ep-select>
                                <ep-select colspan="8" label="行业风险类别" name="aaa149" :property="form.aaa149"
                                           placeholder="请选择行业风险类别" p="E"  codetype="AAA149"
                                           :datas="{formData: form,tableData1:tableData1,tableData1Id:tableData1Id}" ></ep-select>
							<epl-search-input colspan="8" label="结算单位编码"     name="aab000" :property="form.aab000" type="company" placeholder="请输入结算单位编码" p="R"
							  tagType="COMPANY_AAB000_EXACT" api="/business/d100insiup/d01companycommon/CpQueryComm/doCpQueryComm01">
                            <epl-search-input-item header="统一社会信用代码"  name="bab010"></epl-search-input-item>
                            <epl-search-input-item header="单位名称" name="aab069"></epl-search-input-item>
                        </epl-search-input>

                            </el-row>
                            <el-row>
                                <ep-input colspan="8" label="单位电话" name="bae566" :property="form.bae566"
                                          placeholder="请输入单位电话" p="E"
                                          rules="this.$rules.telephone" ></ep-input>

                                <ep-input colspan="8" label="单位手机号码" name="bae567" :property="form.bae567"
                                          placeholder="请输入单位手机号码" p="E"
                                          rules="this.$rules.mobile" ></ep-input>
                                <ep-input colspan="8" label="单位传真" name="czphone" :property="form.czphone"
                                          placeholder="请输入单位传真" p="E"  rules="this.$rules.telephone"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row>
                                <ep-input colspan="8" label="单位电子邮箱" rules="this.$rules.isEmail" name="dwaae159" :property="form.dwaae159"
                                          placeholder="请输入单位电子邮箱" p="E"
                                          :datas="{formData:form}" ></ep-input>
                                <ep-input colspan="8" label="单位邮编" rules="this.$rules.postcode" name="aae007" :property="form.aae007"
                                          placeholder="请输入单位邮编" p="E" ></ep-input>
                            </el-row>

                            <el-row :gutter="10">
                                <ep-select colspan="8" label="通讯地址" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="E"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="E" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="E" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="类型" name="lx" :property="form.lx"
                                          p="H"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                    </el-card>
                </el-collapse-item>
                <el-collapse-item title="请输入联系人信息" name="2">
                    <el-card class="ep-card">
                            <el-row>

                                <ep-input colspan="8" label="联系人姓名" name="aae011" :property="form.aae011"
                                          placeholder="请输入姓名" p="R"
                                          :datas="{formData:form}"></ep-input>
                                <ep-select colspan="8" label="联系人证件类型" name="lxrlx" :property="form.lxrlx"
                                           placeholder="请选择证件类型" p="R" codetype="AAC058"
                                           :datas="{formData:form}"></ep-select>
                                <ep-input colspan="8" label="联系人证件号码" name="lxraac002" :property="form.lxraac002"
                                          placeholder="请输入证件号码" p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row>
                                <ep-input colspan="8" label="联系人电话" name="aae005" :property="form.aae005"
                                          placeholder="请输入电话" p="R" rules="this.$rules.telephone"
                                ></ep-input>
                                <ep-input colspan="8" label="联系人手机号码" name="aac067" :property="form.aac067"
                                          placeholder="请输入手机号码" p="R"  rules="this.$rules.mobile"
                                ></ep-input>
                            </el-row>
                    </el-card>
                </el-collapse-item>
                <el-collapse-item title="请输入单位银行账号信息" name="3">
                    <el-card class="ep-card">
                            <el-row>
                                <ep-select colspan="8" label="银行账号用途" name="aaa082" :property="form.aaa082"
                                           placeholder="请选择银行账号用途" p="R" codetype="AAA082"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="银行行别" name="aaf200" :property="form.aaf200"
                                           placeholder="请选择银行行别" p="R" codetype="AAF200"
                                           :datas="{formData:form}"></ep-select>

                                <epl-search-bank colspan="8" label="开户行行号" name="aaf002" formName="formData" :property="form.aaf002" placeholder="请选择开户行行号"
                                                 p="R" :datas="{formData: form}" codetype="AAF200" bankName="aaf200" show></epl-search-bank>
                            </el-row>

                            <el-row>
                                <ep-input colspan="8" label="开户行名称" name="bac049" :property="form.bac049"
                                          placeholder="" p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009"
                                          placeholder="请输入银行开户名" p="R"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010"
                                          placeholder="请输入银行账号" p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                       
                    </el-card>
                                    </el-collapse-item>
                <el-collapse-item title="请选择险种信息" name="3">
                <el-card class="ep-card">
                    <el-row>
                        <ep-table :data="tableData1" ref="tableData1"  border style="width: 100%;" rowDbClick>
                            <!--<el-table-column type="selection" width="55"></el-table-column>-->
                            <ep-table-column editor="checkbox" name="checked" header="选择" width="55"></ep-table-column>
                            <ep-table-column editor="select" edited name="aae140" codetype="AAE140" header="参保险种"></ep-table-column>
                            <ep-table-column editor="select" edited name="aaz289" header="征缴档次" codetype="AAZ289"></ep-table-column>
                        </ep-table>
                    </el-row>
                </el-card>
                </el-collapse-item>

            </el-collapse>
				<el-card>
				<el-row type="flex" justify="center">
                        <ep-saveButton id="" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{panel:panel,formData: form,
                                           tableData1:tableData1,tableData1Id:tableData1Id}" name="保存"></ep-saveButton>

                    </el-row>
                </el-card>
				 </el-form>

        </el-main>
    </el-main>
</template>
<script src="../js/CpInsureRegJS.js"></script>
<style lang="less" scoped>

</style>
